package com.alpaca.recommend.dto;

import java.util.Comparator;

/**
 * Created by wangj on 2015/2/10.
 */
public class UserItemDTO {
    private String itemId;

    private Integer rank;

    private Long createTime;

    public UserItemDTO(String itemRankStr) {
        String[] parts = itemRankStr.split("_");
        itemId = parts[0];
        rank = Integer.valueOf(parts[1]);
    }

    public UserItemDTO(String itemId,long crateTime){
        this.itemId = itemId;
        this.createTime = crateTime;
    }

    public UserItemDTO(String itemId, Integer rank) {
        this.itemId = itemId;
        this.rank = rank;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
}
